//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.lele.pdf;

import java.io.File;
import java.util.Arrays;



public class PdfWatermarkProperties {
    private File fontFile;
    private float fontSize = 18.0F;
    private int[] color = new int[]{0, 0, 0, 210};
    private float transparency = 0.3F;
    private double rotate = 0.3D;
    private int x = 10;
    private int y = 10;
    private int width = 200;
    private int height = 200;
    private String font = "simfang";
    private Boolean debug;

    public PdfWatermarkProperties() {
        this.debug = Boolean.FALSE;
    }

    public File getFontFile() {
        return this.fontFile;
    }

    public float getFontSize() {
        return this.fontSize;
    }

    public int[] getColor() {
        return this.color;
    }

    public float getTransparency() {
        return this.transparency;
    }

    public double getRotate() {
        return this.rotate;
    }

    public int getX() {
        return this.x;
    }

    public int getY() {
        return this.y;
    }

    public int getWidth() {
        return this.width;
    }

    public int getHeight() {
        return this.height;
    }

    public String getFont() {
        return this.font;
    }

    public Boolean getDebug() {
        return this.debug;
    }

    public void setFontFile(final File fontFile) {
        this.fontFile = fontFile;
    }

    public void setFontSize(final float fontSize) {
        this.fontSize = fontSize;
    }

    public void setColor(final int[] color) {
        this.color = color;
    }

    public void setTransparency(final float transparency) {
        this.transparency = transparency;
    }

    public void setRotate(final double rotate) {
        this.rotate = rotate;
    }

    public void setX(final int x) {
        this.x = x;
    }

    public void setY(final int y) {
        this.y = y;
    }

    public void setWidth(final int width) {
        this.width = width;
    }

    public void setHeight(final int height) {
        this.height = height;
    }

    public void setFont(final String font) {
        this.font = font;
    }

    public void setDebug(final Boolean debug) {
        this.debug = debug;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof PdfWatermarkProperties)) {
            return false;
        } else {
            PdfWatermarkProperties other = (PdfWatermarkProperties)o;
            if (!other.canEqual(this)) {
                return false;
            } else if (Float.compare(this.getFontSize(), other.getFontSize()) != 0) {
                return false;
            } else if (Float.compare(this.getTransparency(), other.getTransparency()) != 0) {
                return false;
            } else if (Double.compare(this.getRotate(), other.getRotate()) != 0) {
                return false;
            } else if (this.getX() != other.getX()) {
                return false;
            } else if (this.getY() != other.getY()) {
                return false;
            } else if (this.getWidth() != other.getWidth()) {
                return false;
            } else if (this.getHeight() != other.getHeight()) {
                return false;
            } else {
                Object this$debug = this.getDebug();
                Object other$debug = other.getDebug();
                if (this$debug == null) {
                    if (other$debug != null) {
                        return false;
                    }
                } else if (!this$debug.equals(other$debug)) {
                    return false;
                }

                label61: {
                    Object this$fontFile = this.getFontFile();
                    Object other$fontFile = other.getFontFile();
                    if (this$fontFile == null) {
                        if (other$fontFile == null) {
                            break label61;
                        }
                    } else if (this$fontFile.equals(other$fontFile)) {
                        break label61;
                    }

                    return false;
                }

                if (!Arrays.equals(this.getColor(), other.getColor())) {
                    return false;
                } else {
                    Object this$font = this.getFont();
                    Object other$font = other.getFont();
                    if (this$font == null) {
                        if (other$font != null) {
                            return false;
                        }
                    } else if (!this$font.equals(other$font)) {
                        return false;
                    }

                    return true;
                }
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof PdfWatermarkProperties;
    }

    public int hashCode() {
        //int PRIME = true;
        int result = 1;
         result = result * 59 + Float.floatToIntBits(this.getFontSize());
        result = result * 59 + Float.floatToIntBits(this.getTransparency());
        long $rotate = Double.doubleToLongBits(this.getRotate());
        result = result * 59 + (int)($rotate >>> 32 ^ $rotate);
        result = result * 59 + this.getX();
        result = result * 59 + this.getY();
        result = result * 59 + this.getWidth();
        result = result * 59 + this.getHeight();
        Object $debug = this.getDebug();
        result = result * 59 + ($debug == null ? 43 : $debug.hashCode());
        Object $fontFile = this.getFontFile();
        result = result * 59 + ($fontFile == null ? 43 : $fontFile.hashCode());
        result = result * 59 + Arrays.hashCode(this.getColor());
        Object $font = this.getFont();
        result = result * 59 + ($font == null ? 43 : $font.hashCode());
        return result;
    }

    public String toString() {
        return "PdfWatermarkProperties(fontFile=" + this.getFontFile() + ", fontSize=" + this.getFontSize() + ", color=" + Arrays.toString(this.getColor()) + ", transparency=" + this.getTransparency() + ", rotate=" + this.getRotate() + ", x=" + this.getX() + ", y=" + this.getY() + ", width=" + this.getWidth() + ", height=" + this.getHeight() + ", font=" + this.getFont() + ", debug=" + this.getDebug() + ")";
    }
}
